package com.wu.gumomallproduct.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wu.common.utils.PageUtils;
import com.wu.common.entity.product.CategoryEntity;
import com.wu.common.vo.product.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * ??Ʒ???????
 *
 * @author wu
 * @email 2195361340@qq.com
 * @date 2022-12-12 17:36:43
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void updateByCategoryEntity(CategoryEntity category);

    public Long[] findCatelogPath(Long catelogId);

    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catalog2Vo>> getCatalogJson();

    void saveCategoryEntity(CategoryEntity category);
}

